package com.team8.system.service.dao;

import com.team8.system.pojo.FlightInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface FlightInfoDao extends Mapper<FlightInfo> {


    @Insert("UPDATE flight_info set ticket_num = #{ticket_num} where ffid = #{ffid} AND start_seg = #{start_seg} AND end_seg = #{end_seg};")
    void updateTicketNum(
            @Param("ffid") String ffid,
            @Param("start_seg") String startSeg,
            @Param("end_seg") String endSeg,
            @Param("ticket_num") Integer ticketNum);

}
